// Instantiate a Panel from script
var yuiPanel = function ()
{
    var panel2;
    var txtbody = "No Message included.";
    var txthead = "";
    var txtfoot = "";
    this.setBody = function (text){
    	this.txtbody = text;
    }
    this.setHead = function (text){
    	this.txthead = text;
    }
    this.setFoot = function (text){
    	this.txtfoot = text;
    }
	this.show = function ()
	{
		this.panel2 = new YAHOO.widget.Panel("panel", { draggable:true,
														constraintoviewport: true,
														underlay:"shadow", effect:{effect:YAHOO.widget.ContainerEffect.FADE,duration:0.45},
														width:"320px",
														visible:true,
														close:true } );
		if (this.txthead)
			this.panel2.setHeader(this.txthead);
		this.panel2.setBody(this.txtbody);
		if (this.txtfoot)
			this.panel2.setFooter(this.txtfoot);
	    this.panel2.render(document.body);
    }
    this.hide = function ()
    {
        this.panel2.hide();
    }
}